<?php
namespace app\mobile\controller;
use app\mobile\common\Base;
use think\Db;
use think\Session;
//维修记录
class Maintenancelist extends Base
{
    public function index()
    {
        $data = $this->request->param();
        $is_sn=is_sn($data['sn']);
        $this->assign('real_sn',$is_sn['sn']);
    	return $this->fetch();
    }

    public function add()
    {
        $data = $this->request->param();
        $is_sn=is_sn($data['sn']);
        $this->assign('real_sn',$is_sn['sn']);
    	return $this->fetch();
    }
    public function details()
    {
        $data = $this->request->param();
        $id=$data['id'];
        $sn=$data['sn'];
        $is_sn=is_sn($data['sn']);
        $this->assign('id', $id);
        $this->assign('sn', $sn);
        $this->assign('real_sn',$is_sn['sn']);
    	return $this->fetch();
    }

}
